using System;
using Sinacor.Infra.Common;
using System.Collections.Generic;
using Sinacor.Service.Infra.AuthorizationService.Service.DataContract.Request;
using Sinacor.Service.Infra.AuthorizationService.BusinessEntity;

namespace Sinacor.Service.Infra.AuthorizationService.Service.ServiceImplementation.Translator
{
    /// <summary>
    /// Classe tradutora entre objetos DeletePolicyRequest e Policy
    /// </summary>
    public class DeletePolicyRequestToPolicy : BaseTranslator<Sinacor.Service.Infra.AuthorizationService.BusinessEntity.Policy, Sinacor.Service.Infra.AuthorizationService.Service.DataContract.Request.DeletePolicyRequest, List<Sinacor.Service.Infra.AuthorizationService.BusinessEntity.Policy>, List<Sinacor.Service.Infra.AuthorizationService.Service.DataContract.Request.DeletePolicyRequest>>
    {
        public override Sinacor.Service.Infra.AuthorizationService.BusinessEntity.Policy Translate(Sinacor.Service.Infra.AuthorizationService.Service.DataContract.Request.DeletePolicyRequest from)
        {
            if (from == null)
                return null;

            Sinacor.Service.Infra.AuthorizationService.BusinessEntity.Policy to = new Sinacor.Service.Infra.AuthorizationService.BusinessEntity.Policy();
            to.PolicyId = from.PolicyId;

            return to;
        }



    }
}

